package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyWmtxl;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyWmtxlParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyWmtxlResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuy
 * @since 2021-08-16
 */
public interface BtyWmtxlMapper extends BaseMapper<BtyWmtxl> {

    /**
     * 获取列表
     *
     * @author liuy
     * @Date 2021-08-16
     */
    List<BtyWmtxlResult> customList(@Param("paramCondition") BtyWmtxlParam paramCondition);

    /**
     * 获取map列表
     *
     * @author liuy
     * @Date 2021-08-16
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyWmtxlParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author liuy
     * @Date 2021-08-16
     */
    Page<BtyWmtxlResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyWmtxlParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author liuy
     * @Date 2021-08-16
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyWmtxlParam paramCondition);

    boolean updateWm(BtyWmtxl btyWmtxl);

    boolean updateWmDm(BtyWmtxl btyWmtxl);

    int getYaoma(BtyWmtxl btyWmtxl);

    int getDm(BtyWmtxl btyWmtxl);

    int getSta(BtyWmtxl btyWmtxl);

    int getStaByDm(BtyWmtxl btyWmtxl);

    void updatYm();

    void updatDm();

    void updatYyjl();

    void updatElm();

    void updatMt();

    List<Map> getYmList();
}
